package com.lanchetech.common.enums;

import lombok.Getter;

@Getter
public enum PrizeTypeEnum {
    // 奖品 0 奖品 1 积分 2 谢谢参与
    PRODUCT((byte) 0, "消费金"),
    COIN((byte) 1, "嗨币"),
    THANK((byte) 2, "谢谢参与"),
    POINTS((byte) 3, "常规商品"),
    ;

    private Byte type;
    private String remark;

    PrizeTypeEnum(Byte type, String remark) {
        this.type = type;
        this.remark = remark;
    }

    public static String getRemarkByType(Byte type) {
        for (PrizeTypeEnum item : PrizeTypeEnum.values()) {
            if (item.getType().equals(type)) {
                return item.getRemark();
            }
        }
        return "";
    }
}
